package com.ruoyi.express.domain;

import com.ruoyi.common.base.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 百度开放平台token表 baidu_api_token
 * 
 * @author ruoyi
 * @date 2019-03-09
 */
public class BaiduApiToken extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	/** 主键id */
	private Integer tokenId;
	/** client_id */
	private String clientId;
	/** session_key */
	private String sessionKey;
	/** session_secret */
	private String sessionSecret;
	/** 过期时间 */
	private Long expiresIn;
	/** access_token */
	private String accessToken;
	/** refresh_token */
	private String refreshToken;
	/** 权限作用域 */
	private String scope;
	/** 创建时间 */
	private Date createTime;
	/** 更新时间 */
	private Date updateTime;
	/** access_token时间 */
	private Date accessTokenTime;

	public Date getAccessTokenTime() {
		return accessTokenTime;
	}

	public void setAccessTokenTime(Date accessTokenTime) {
		this.accessTokenTime = accessTokenTime;
	}

	@Override
	public Date getCreateTime() {
		return createTime;
	}

	@Override
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Override
	public Date getUpdateTime() {
		return updateTime;
	}

	@Override
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public void setTokenId(Integer tokenId)
	{
		this.tokenId = tokenId;
	}

	public Integer getTokenId() 
	{
		return tokenId;
	}
	public void setClientId(String clientId) 
	{
		this.clientId = clientId;
	}

	public String getClientId() 
	{
		return clientId;
	}
	public void setSessionKey(String sessionKey) 
	{
		this.sessionKey = sessionKey;
	}

	public String getSessionKey() 
	{
		return sessionKey;
	}
	public void setSessionSecret(String sessionSecret) 
	{
		this.sessionSecret = sessionSecret;
	}

	public String getSessionSecret() 
	{
		return sessionSecret;
	}
	public void setExpiresIn(Long expiresIn) 
	{
		this.expiresIn = expiresIn;
	}

	public Long getExpiresIn() 
	{
		return expiresIn;
	}
	public void setAccessToken(String accessToken) 
	{
		this.accessToken = accessToken;
	}

	public String getAccessToken() 
	{
		return accessToken;
	}
	public void setRefreshToken(String refreshToken) 
	{
		this.refreshToken = refreshToken;
	}

	public String getRefreshToken() 
	{
		return refreshToken;
	}
	public void setScope(String scope) 
	{
		this.scope = scope;
	}

	public String getScope() 
	{
		return scope;
	}

    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("tokenId", getTokenId())
            .append("clientId", getClientId())
            .append("sessionKey", getSessionKey())
            .append("sessionSecret", getSessionSecret())
            .append("expiresIn", getExpiresIn())
            .append("accessToken", getAccessToken())
            .append("refreshToken", getRefreshToken())
            .append("scope", getScope())
            .toString();
    }
}
